import App from './App'
// 引入 uView UI
import uView from './uni_modules/vk-uview-ui';
import utils from '@/utils/utils.js'
import share from '@/utils/share.js'


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.mixin(share)
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';

export function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia());
  app.use(uView)
  app.mixin(share)
  return {
    app,
	Pinia
  }
}
// #endif

